﻿//
// Created: 2018/9/6
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Model.WXshopBuiness;

namespace Model.WXshopBuiness.Map
{
    internal  class WeiXinProductAttrMap:EntityTypeConfiguration< WeiXinProductAttr >    
    {
        public WeiXinProductAttrMap()
        {
             this.ToTable("WeiXin_ProductAttr");
             this.HasKey(i => new { i.ID });
             this.Property(i => i.ID).HasColumnName("ID");                     
             this.Property(i => i.ProductId).HasColumnName("ProductId");                     
             this.Property(i => i.AttrId).HasColumnName("AttrId");                     
             this.Property(i => i.AttrValueId).HasColumnName("AttrValueId");                     
             this.Property(i => i.Inputvalue).HasColumnName("Inputvalue");                     
        }   
    }
    
     public static class WeiXinProductAttrMapExtensions
    {
        public static void UserWeiXinProductAttrMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new WeiXinProductAttrMap());
        }
    }
}